//
//  PBHomeTypeCell.m
//  PBHomeDemo
//
//  Created by Playboy on 2017/11/21.
//  Copyright © 2017年 tmkj. All rights reserved.
//

#import "PBHomeTypeCell.h"
#import "PBRentTypeController.h"
#import "PBLifeServeController.h"

@implementation PBHomeTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)buttonClick:(UIButton *)sender {
    if (sender.tag == 100) {
        PBRentTypeController *vc = [[PBRentTypeController alloc] init];
        vc.type = 1;
        vc.hidesBottomBarWhenPushed = YES;
        [self.jumpVC.navigationController pushViewController:vc animated:YES];
    }else if (sender.tag == 101) {
        PBRentTypeController *vc = [[PBRentTypeController alloc] init];
        vc.type = 2;
        vc.hidesBottomBarWhenPushed = YES;
        [self.jumpVC.navigationController pushViewController:vc animated:YES];
    }else if (sender.tag == 102) {
        PBRentTypeController *vc = [[PBRentTypeController alloc] init];
        vc.type = 3;
        vc.hidesBottomBarWhenPushed = YES;
        [self.jumpVC.navigationController pushViewController:vc animated:YES];
    }else if (sender.tag == 103) {
        PBLifeServeController *vc = [[PBLifeServeController alloc] init];
        vc.hidesBottomBarWhenPushed = YES;
        vc.type = 1;
        [self.jumpVC.navigationController pushViewController:vc animated:YES];
    }
}


@end
